package com.demo.camunda.entity;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("msgclient2")
public class MsgclientT {

    private static final long serialVersionUID = 1L;

    // 使用 IdType.AUTO 注解时注意，在mapper.XML文件中 不能带上id字段，要不会默认赋值为空，要把它排除掉
    @TableId(value="id",type = IdType.ASSIGN_ID)
    @ExcelIgnore
    private String id;


    @TableField("clientphone")
    @ExcelProperty(value = "电话号码", index = 0)
    private String clientphone;

    @ExcelProperty(value ="姓名", index = 1)
    @TableField("clientname")
    private String clientname;

    @ExcelProperty(value ="分组", index = 2)
    @TableField("group")
    private String group;

    @ExcelProperty(value ="备注", index = 3)
    @TableField("remark")
    private String remark;
}
